<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> 
<meta name="keywords" content="carousel, jquery, responsive, fluid, elastic, resize, thumbnail, slider" />
<meta name="author" content="Codrops" />
<title>微评说客</title>
<link rel="stylesheet" type="text/css" href="/Public/home/style/public.css">
<link rel="stylesheet" type="text/css" href="/Public/home/style/style.css">
<link rel="stylesheet" type="text/css" href="/Public/home/style/font-awesome.css">
<script src="/Public/home/jquery/jquery-1.7.2.min.js"></script>
<style>
	html,body{ background:#f2f2f2;}
</style>
<script type="text/javascript">
function submit(){
	
	checkfill();
}

function checkfill(){
	if(!$(':radio[name=213234]:checked').length) {
	    alert('请选择评价');
	}
	
}

</script>

</head>

<body>
<header class="index-header">
	<h1>问卷调查</h1>
    <a href="#" class="icon-circle-arrow-left kl"></a>
</header>

<section class="tq-c">
	<h1>心理健康症状自评量表SCL-90</h1>
    <div class="tq-c2">
    	<p>《症状自评量表-SCL90》是世界上最著名的心理健康测试量表之一，是当前使用最为广泛的精神障碍和心理疾病门诊检查量表，将协助您从十个方面来了解自己的心理健康程度。 本测验适用对象为16岁以上的用户。</p>
        <span>-------测试指导语</span>
    </div>
    <div class="tq-content">
    	<ul>
    	<?php $num=1;$change=0; ?>
    	<?php if(is_array($info)): $i = 0; $__LIST__ = $info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
   			  <h3><?php echo ($i); ?>. <?php echo ($vo["name"]); ?> <b>*</b></h3>
    			<div class="tqw">
    			
    			<?php if(is_array($vo["options"])): $k = 0; $__LIST__ = $vo["options"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$so): $mod = ($k % 2 );++$k; if(($so["type"] == 'text')): ?><p><textarea name="<?php echo ($vo["id"]); ?>"  placeholder="输入您的感想"></textarea></p>
                	<?php $change=0; ?>
                	<?php elseif($so["type"] == 'radio' ): ?>
                	<p><input type="<?php echo ($so["type"]); ?>" name="radio<?php echo $num; ?>" value="单选" id="<?php echo ($vo["id"]); ?>"><span><?php echo ($k); ?>. <?php echo ($so["text"]); ?></span></p>
                	<?php $change=1; ?>
                	<?php else: ?>
                	<p><input type="<?php echo ($so["type"]); ?>" name="checked" value="单选" id="<?php echo ($vo["id"]); ?>"><span><?php echo ($k); ?>. <?php echo ($so["text"]); ?></span></p>
                	<?php $change=0; endif; endforeach; endif; else: echo "" ;endif; ?>
                	<?php if($change)<?php echo ($num++;); ?> ?>
              </div>
    		</li><?php endforeach; endif; else: echo "" ;endif; ?>
    		
            <li><input type="button" value="提交问卷" class="button" onclick="submit()"></li>
    	</ul>
    </div>
</section>
<div class="hh"></div>
<nav>
	<ul>
		<li>
        	<a href="index.html" class="n1">
				<p></p>
				<span>首页</span>
			</a>
        </li>
		<li>
        	<a href="questionnaire.html" class="n2">
				<p class="current"></p>
				<span class="current">问卷</span>
			</a>
        </li>
		<li>
        	<a href="Post.html" class="n3">
				<p></p>
				<span>发布</span>
			</a>
        </li>
		<li>
        	<a href="mine.html" class="n4">
				<p></p>
				<span>我的</span>
			</a>
        </li>
	</ul>
</nav>
</body>
</html>